<template>
  <div class="approval-header">
    <van-icon name="arrow-left" class="icon" @click="goBack" />
    <div class="approval">管理员审批</div>
    <!-- <div class="approval"></div> -->
  </div>
</template>

<script>
import { useRouter } from "vue-router";
export default {
  name: "Header",
  setup() {
    const router = useRouter();
    const goBack = () => {
      router.go(-1);
    };
    return {
      goBack,
    };
  },
};
</script>
<style lang="scss" scoped>
.approval-header {
  //   position: fixed;
  width: 100%;
  height: 1rem;
  position: relative;
  text-align: center;
  line-height: 1rem;
  background: #202a5a;
  color: #fff;
  font-size: 0.35rem;
  //   top: 0;
  .icon {
    font-size: 0.5rem !important;
    position: absolute;
    left: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
  }
}
</style>
